{# The content beside a sub-menu: the current section's title and its partial, ``/_
.html``. A ``live`` page's Overview is re-sent over SSE as ``-overview``. #} {% from "components/macros/layout.html" import page_header %} {% set component = item.component %} {# A page whose numbers are live says ``header_message: None`` so the header, rendered once, cannot show a count the stream has moved past. #} {% set message = header_message if header_message is defined else component.message|message %} {# A section may say what it is for (``section_subtitle``) and put its own verbs in the header (``/_
_actions.html``). #} {% set subtitle = section_subtitle if section_subtitle is defined else (message if current == "overview" else none) %} {# A page of one section heads it with its own name: it has no sub-menu. #} {% call page_header(item.title if page.single else page.labels[current], subtitle) %}{% include "pages/overseer/" ~ page.folder ~ "/_" ~ current|replace("-", "_") ~ "_actions.html" ignore missing %}{% endcall %} {# A section every page may have (the Container section) falls back to one shared ``_
.html``. #} {% set partial = ["pages/overseer/" ~ page.folder ~ "/_" ~ current|replace("-", "_") ~ ".html", "pages/overseer/_" ~ current|replace("-", "_") ~ ".html"] %} {# The Overview's glance at the containers behind the page, kept live by its own stream (overseer_container.glance). #} {% if glance is defined %}
{% include "pages/overseer/_glance_rows.html" %}
{% endif %} {% if page.live and current == "overview" %}
{% include partial %}
{% else %} {% include partial %} {% endif %}